<%@taglib tagdir="/WEB-INF/tags/koor" prefix="koor" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<fmt:setLocale value="${lang}"/>

<html>
    <head>
        <koor:bootstrap/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="js/jquery1-1.7.2.js"></script>
        <script type="text/javascript" src="js/bootstrap-alert.js" ></script> 
        <script type="text/javascript" src="js/jquery.validation.js" ></script> 
        <script type="text/javascript" src="js/form_validate.js">  </script>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
        <title>Koor :: Изменение студента</title>
    </head>

    <body>

        <koor:top/>
        <koor:navtabs number="2"/>

        <div class="span7 offset2 well">

            <div style="margin-bottom: 20px" class="center_title">
                <h2>Изменение студента</h2>
            </div>

            <div>            
                <form class="form-horizontal" method="POST" action="main?action=student.save"
                      onsubmit="return organizationVal(this);">
                    <fieldset>

                        <input type="hidden" name="id" value="${student.id}">

                        <div id="firstnameDiv" class="control-group">
                        <label class="control-label" for="firstname">Фамилия</label>
                        <div class="controls">
                            <input class="span4" type="text" id="firstname" name="firstname" value="${student.firstName}" oninput="fieldIsFilling(this)">
                            <span class="help-inline" ></span>
                        </div>
                    </div>

                    <div id="secondnameDiv" class="control-group">
                        <label class="control-label" for="secondname">Имя</label>
                        <div class="controls">
                            <input class="span4" type="text" id="secondname" name="secondname" value="${student.secondName}" oninput="fieldIsFilling(this)">
                            <span class="help-inline" ></span>
                        </div>
                    </div>

                    <div id="patronymicDiv" class="control-group">
                        <label class="control-label" for="patronymic">Отчество</label>
                        <div class="controls">
                            <input class="span4" type="text" id="patronymic" name="patronymic" value="${student.patronymic}">
                            <span class="help-inline" ></span>
                        </div>
                    </div>

                    <div id="cardDiv" class="control-group">
                        <label class="control-label" for="card">Номер студенческого билета</label>
                        <div class="controls">
                            <input class="span4" type="text" id="card" name="card" value="${student.numberOfCard}" oninput="fieldIsFilling(this)">
                            <span class="help-inline" ></span>
                        </div>
                    </div>

                    </fieldset>
                    <div class="center_title">
                    <input class="btn btn-primary" type="submit" name="saveButton" value="Изменить">
                    <a href="main?action=student.list" class="btn" name="cancelButton">Отменить</a>
                </div>


                </form>

            </div>          
        </div>                    
    </body>
</html>
